import Vue from 'vue'
import Vuex  from 'vuex'
import { moduleA } from './modules/a'
import {moduleProdList} from './modules/moduleProdList'
import orderDetaile from './modules/moduleOrderDetile'
import login from './modules/login'
import menu from './modules/menu'
Vue.use(Vuex)

const store = new Vuex.Store({
    state:{
        infor:'222',
    },
    modules:{
        prodList:moduleProdList,
        orderDetaile,
        login,
        menu,
        a: moduleA,
        b:{
            state: ()=> ({
                inge: 10
            }),
            getters:{},
            mutations:{},
            actions:{}
        }
    }
})

export default store